package com.toymate.modules.iot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.toymate.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * IotProduct
 *
 * @author weirdor (179946422@qq.com)
 * @version v1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("iot_product")
@ApiModel(value = "产品表", description = "产品表")
public class IotProduct extends BaseEntity<IotProduct> {

    private static final long serialVersionUID = 1L;

    /**
     * 产品ID
     */
    @ApiModelProperty(name = "产品ID")
    @TableId(value = "product_id", type = IdType.ASSIGN_ID)
    private String productId;

    /**
     * 产品名称
     */
    @ApiModelProperty(name = "产品名称")
    private String productName;

    /**
     * mqtt账号
     */
    @ApiModelProperty(name = "mqtt账号")
    private String mqttAccount;

    /**
     * mqtt密码
     */
    @ApiModelProperty(name = "mqtt密码")
    private String mqttPassword;

    /**
     * 产品秘钥
     */
    @ApiModelProperty(name = "产品秘钥")
    private String mqttSecret;

    /**
     * 创建人
     */
    @ApiModelProperty(name = "创建人")
    private String createBy;

    /**
     * 更新人
     */
    @ApiModelProperty(name = "更新人")
    private String updateBy;

}
